package com.dries.portal.module.xxshop.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author ZSY
 * @createTime 2020/10/15 13:07
 */
public class OrderEnums {

    @Getter
    @AllArgsConstructor
    @NoArgsConstructor
    public enum OrderStatusType {
        /**
         * 订单状态，-1：取消订单；
         * 0未支付，1已支付，
         * 2，发货中，
         * 3已发货，
         * 4已收货，
         * 5退货审核中，
         * 6审核失败，
         * 7审核成功，
         * 8退款中，
         * 9退款成功
         */
        CANCEL_ORDER(-1, "取消订单"),
        UNPAID(0, "未支付"),
        PREPAID(1, "已支付"),
        WAITDELIVER(2, "发货中"),
        SHIPPED(3, "已发货"),
        RECEIVED(4, "已收货"),
        VERIFICATION(5, "退货审核中"),
        AUDIT_FAILURE(6, "审核失败"),
        Audit_SUCCESS(7, "审核成功"),
        REFUND(8, "退款中"),
        REFUND_SUCCESS(9, "退款成功")
        ;

        public int code;
        public String description;

    }

    @Getter
    @AllArgsConstructor
    @NoArgsConstructor
    public enum OrderGoodsStatus {
        /**
         * 商品状态(0：正常状态，1：客户申请退货， 2：商家同意退货中，TODO。。。退款中)
         */
        NORMAL(0, "正常状态"),
        VERIFICATION(1, "客户申请退货"),
        REFUND(2, "商家同意退货中")
        ;

        public int code;
        public String description;

    }


}
